package GUI;

import java.awt.FlowLayout;

import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JTextField;

import com.jgoodies.forms.builder.PanelBuilder;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;

public class PPB_impl_Booking implements PiratebayPanelBuilder {

	private JPanel customer;
	private JPanel travel;

	/**
	 * Creates and intializes the UI components.
	 */
	private void initComponents() {
		customer = new PPB_impl_Customer().buildPanel();
		travel = new PPB_impl_Travel().buildPanel();
	}

	/**
	 * Creates and returns a combo box for the approval states.
	 * 
	 * @return a combo box for the approval status
	 */
	private JComboBox<String> createApprovalStatusComboBox() {
		return new JComboBox<String>(new String[] { "In Progress", "Finished",
				"Released" });
	}

	/**
	 * Creates and returns a combo box for the project types.
	 * 
	 * @return a combo box for the project type
	 */
	private JComboBox<String> createProjectTypeComboBox() {
		return new JComboBox<String>(new String[] { "New Building",
				"Conversion", "Repair" });
	}

	/**
	 * Builds the pane.
	 * 
	 * @return the built panel
	 */
	public JPanel buildPanel() {
		initComponents();
		JPanel panel = new JPanel();
		panel.setLayout(new FlowLayout());
		panel.add(customer);
		panel.add(travel);
		return panel;
	}
}
